home *** CD-ROM | disk | FTP | other *** search
/ Night Owl - The Best of BBS / Night Owl The Best of BBS (NOP-BBS) (Night Owl Publisher) (1994).iso / 014a / ezbbs215.lha / Source / unspace.c < prev   
C/C++ Source or Header  |  1994-02-06  |  464b  |  34 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <time.h>
  5. #include <proto/dos.h>
  6. #include <proto/exec.h>
  7.  
  8.  
  9.  
  10. #define VERSION "1.1"
  11. static char *version = "\0$VER: unspace "VERSION" ("__AMIGADATE__")";
  12.  
  13.  
  14.  
  15. int main(int argc, char *argv[])
  16. {
  17.   int i;
  18.  
  19.   for (i = 1; i<argc; ++i) {
  20.     char *s = argv[i];
  21.     while (*s) {
  22.       if (*s==' ')
  23.         putchar('_');
  24.       else
  25.         putchar(*s);
  26.       ++s;
  27.     }
  28.     putchar('\n');
  29.   }
  30.  
  31.   exit(0);
  32. }
  33.  
  34.